+Wed Jun 10 12:57:03 1998 Owen Taylor <otaylor@gtk.org>
+
+ * gdk/gdkcc.c glib/ghash.c glib/glib.h glib/gstring.c
+ glib/gutils.c glib/testglib.c glib/gdataset.c
+ gtk/gtkaccelgroup.c gtk/gtkmain.c gtk/gtksignal.c
+ gtk/gtktext.c gtk/gtkbindings.c:
+
+ renamed g_const_pointer => gconstpointer
+
Wed Jun 10 06:25:17 1998 Tim Janik <timj@gtk.org>
* gdk/gdk.c (gdk_init): prevent gdk_init() from segfaulting when
+Wed Jun 10 12:57:03 1998 Owen Taylor <otaylor@gtk.org>
+
+ * gdk/gdkcc.c glib/ghash.c glib/glib.h glib/gstring.c
+ glib/gutils.c glib/testglib.c glib/gdataset.c
+ gtk/gtkaccelgroup.c gtk/gtkmain.c gtk/gtksignal.c
+ gtk/gtktext.c gtk/gtkbindings.c:
+
+ renamed g_const_pointer => gconstpointer
+
Wed Jun 10 06:25:17 1998 Tim Janik <timj@gtk.org>
* gdk/gdk.c (gdk_init): prevent gdk_init() from segfaulting when
+Wed Jun 10 12:57:03 1998 Owen Taylor <otaylor@gtk.org>
+
+ * gdk/gdkcc.c glib/ghash.c glib/glib.h glib/gstring.c
+ glib/gutils.c glib/testglib.c glib/gdataset.c
+ gtk/gtkaccelgroup.c gtk/gtkmain.c gtk/gtksignal.c
+ gtk/gtktext.c gtk/gtkbindings.c:
+
+ renamed g_const_pointer => gconstpointer
+
Wed Jun 10 06:25:17 1998 Tim Janik <timj@gtk.org>
* gdk/gdk.c (gdk_init): prevent gdk_init() from segfaulting when
+Wed Jun 10 12:57:03 1998 Owen Taylor <otaylor@gtk.org>
+
+ * gdk/gdkcc.c glib/ghash.c glib/glib.h glib/gstring.c
+ glib/gutils.c glib/testglib.c glib/gdataset.c
+ gtk/gtkaccelgroup.c gtk/gtkmain.c gtk/gtksignal.c
+ gtk/gtktext.c gtk/gtkbindings.c:
+
+ renamed g_const_pointer => gconstpointer
+
Wed Jun 10 06:25:17 1998 Tim Janik <timj@gtk.org>
* gdk/gdk.c (gdk_init): prevent gdk_init() from segfaulting when
+Wed Jun 10 12:57:03 1998 Owen Taylor <otaylor@gtk.org>
+
+ * gdk/gdkcc.c glib/ghash.c glib/glib.h glib/gstring.c
+ glib/gutils.c glib/testglib.c glib/gdataset.c
+ gtk/gtkaccelgroup.c gtk/gtkmain.c gtk/gtksignal.c
+ gtk/gtktext.c gtk/gtkbindings.c:
+
+ renamed g_const_pointer => gconstpointer
+
Wed Jun 10 06:25:17 1998 Tim Janik <timj@gtk.org>
* gdk/gdk.c (gdk_init): prevent gdk_init() from segfaulting when
+Wed Jun 10 12:57:03 1998 Owen Taylor <otaylor@gtk.org>
+
+ * gdk/gdkcc.c glib/ghash.c glib/glib.h glib/gstring.c
+ glib/gutils.c glib/testglib.c glib/gdataset.c
+ gtk/gtkaccelgroup.c gtk/gtkmain.c gtk/gtksignal.c
+ gtk/gtktext.c gtk/gtkbindings.c:
+
+ renamed g_const_pointer => gconstpointer
+
Wed Jun 10 06:25:17 1998 Tim Janik <timj@gtk.org>
* gdk/gdk.c (gdk_init): prevent gdk_init() from segfaulting when
+Wed Jun 10 12:57:03 1998 Owen Taylor <otaylor@gtk.org>
+
+ * gdk/gdkcc.c glib/ghash.c glib/glib.h glib/gstring.c
+ glib/gutils.c glib/testglib.c glib/gdataset.c
+ gtk/gtkaccelgroup.c gtk/gtkmain.c gtk/gtksignal.c
+ gtk/gtktext.c gtk/gtkbindings.c:
+
+ renamed g_const_pointer => gconstpointer
+
Wed Jun 10 06:25:17 1998 Tim Janik <timj@gtk.org>
* gdk/gdk.c (gdk_init): prevent gdk_init() from segfaulting when
static guint
-hash_color (g_const_pointer key)
+hash_color (gconstpointer key)
{
const GdkColor *color = key;
}
static gint
-compare_colors (g_const_pointer a,
- g_const_pointer b)
+compare_colors (gconstpointer a,
+ gconstpointer b)
{
const GdkColor *aa = a;
const GdkColor *bb = b;
static guint
-hash_color (g_const_pointer key)
+hash_color (gconstpointer key)
{
const GdkColor *color = key;
}
static gint
-compare_colors (g_const_pointer a,
- g_const_pointer b)
+compare_colors (gconstpointer a,
+ gconstpointer b)
{
const GdkColor *aa = a;
const GdkColor *bb = b;
+Wed Jun 10 12:56:07 1998 Owen Taylor <otaylor@gtk.org>
+
+ * glib.h: renamed g_const_pointer => gconstpointer
+
Tue Jun 9 17:47:33 1998 Owen Taylor <otaylor@gtk.org>
* glib.h: Remove #error - HP/UX.
struct _GDataset
{
- g_const_pointer location;
+ gconstpointer location;
GDatasetData *data_list;
};
/* --- prototypes --- */
-static inline GDataset* g_dataset_lookup (g_const_pointer dataset_location);
-static inline void g_dataset_destroy_i (GDataset *dataset);
+static inline GDataset* g_dataset_lookup (gconstpointer dataset_location);
+static inline void g_dataset_destroy_i (GDataset *dataset);
static void g_dataset_initialize (void);
static guint* g_dataset_id_new (void);
/* --- functions --- */
static inline GDataset*
-g_dataset_lookup (g_const_pointer dataset_location)
+g_dataset_lookup (gconstpointer dataset_location)
{
register GDataset *dataset;
}
void
-g_dataset_destroy (g_const_pointer dataset_location)
+g_dataset_destroy (gconstpointer dataset_location)
{
register GDataset *dataset;
}
void
-g_dataset_id_set_destroy (g_const_pointer dataset_location,
- guint key_id,
- GDestroyNotify destroy_func)
+g_dataset_id_set_destroy (gconstpointer dataset_location,
+ guint key_id,
+ GDestroyNotify destroy_func)
{
g_return_if_fail (dataset_location != NULL);
}
gpointer
-g_dataset_id_get_data (g_const_pointer dataset_location,
- guint key_id)
+g_dataset_id_get_data (gconstpointer dataset_location,
+ guint key_id)
{
g_return_val_if_fail (dataset_location != NULL, NULL);
}
void
-g_dataset_id_set_data_full (g_const_pointer dataset_location,
- guint key_id,
- gpointer data,
- GDestroyNotify destroy_func)
+g_dataset_id_set_data_full (gconstpointer dataset_location,
+ guint key_id,
+ gpointer data,
+ GDestroyNotify destroy_func)
{
register GDataset *dataset;
register GDatasetData *list;
}
void
-g_hash_table_remove (GHashTable *hash_table,
- g_const_pointer key)
+g_hash_table_remove (GHashTable *hash_table,
+ gconstpointer key)
{
GRealHashTable *rhash_table;
GHashNode *node;
}
gpointer
-g_hash_table_lookup (GHashTable *hash_table,
- g_const_pointer key)
+g_hash_table_lookup (GHashTable *hash_table,
+ gconstpointer key)
{
GRealHashTable *rhash_table;
GHashNode *node;
#endif /* 0 */
typedef void* gpointer;
-typedef const void *g_const_pointer;
+typedef const void *gconstpointer;
#if (SIZEOF_CHAR == 1)
typedef signed char gint8;
gint error);
typedef void (*GDestroyNotify) (gpointer data);
-typedef guint (*GHashFunc) (g_const_pointer key);
-typedef gint (*GCompareFunc) (g_const_pointer a,
- g_const_pointer b);
+typedef guint (*GHashFunc) (gconstpointer key);
+typedef gint (*GCompareFunc) (gconstpointer a,
+ gconstpointer b);
struct _GList
{
gpointer key,
gpointer value);
void g_hash_table_remove (GHashTable *hash_table,
- g_const_pointer key);
+ gconstpointer key);
gpointer g_hash_table_lookup (GHashTable *hash_table,
- g_const_pointer key);
+ gconstpointer key);
void g_hash_table_freeze (GHashTable *hash_table);
void g_hash_table_thaw (GHashTable *hash_table);
void g_hash_table_foreach (GHashTable *hash_table,
/* Hash Functions
*/
-gint g_str_equal (g_const_pointer v,
- g_const_pointer v2);
-guint g_str_hash (g_const_pointer v);
+gint g_str_equal (gconstpointer v,
+ gconstpointer v2);
+guint g_str_hash (gconstpointer v);
/* This "hash" function will just return the key's adress as an
* unsigned integer. Useful for hashing on plain adresses or
* simple integer values.
*/
-guint g_direct_hash (g_const_pointer key);
+guint g_direct_hash (gconstpointer key);
/* Location Associated Data
*/
-void g_dataset_destroy (g_const_pointer dataset_location);
+void g_dataset_destroy (gconstpointer dataset_location);
guint g_dataset_try_key (const gchar *key);
guint g_dataset_force_id (const gchar *key);
-gpointer g_dataset_id_get_data (g_const_pointer dataset_location,
+gpointer g_dataset_id_get_data (gconstpointer dataset_location,
guint key_id);
-void g_dataset_id_set_data_full (g_const_pointer dataset_location,
+void g_dataset_id_set_data_full (gconstpointer dataset_location,
guint key_id,
gpointer data,
GDestroyNotify destroy_func);
-void g_dataset_id_set_destroy (g_const_pointer dataset_location,
+void g_dataset_id_set_destroy (gconstpointer dataset_location,
guint key_id,
GDestroyNotify destroy_func);
*/
gint
-g_str_equal (g_const_pointer v, g_const_pointer v2)
+g_str_equal (gconstpointer v, gconstpointer v2)
{
return strcmp ((const gchar*) v, (const gchar*)v2) == 0;
}
/* a char* hash function from ASU */
guint
-g_str_hash (g_const_pointer v)
+g_str_hash (gconstpointer v)
{
const char *s = (char*)v;
const char *p;
}
guint
-g_direct_hash(g_const_pointer key)
+g_direct_hash(gconstpointer key)
{
return GPOINTER_TO_UINT (key);
}
}
guint
-my_hash (g_const_pointer key)
+my_hash (gconstpointer key)
{
return (guint) *((const gint*) key);
}
gint
-my_hash_compare (g_const_pointer a,
- g_const_pointer b)
+my_hash_compare (gconstpointer a,
+ gconstpointer b)
{
return *((const gint*) a) == *((const gint*) b);
}
gint
-my_list_compare_one (g_const_pointer a, g_const_pointer b)
+my_list_compare_one (gconstpointer a, gconstpointer b)
{
gint one = *((const gint*)a);
gint two = *((const gint*)b);
}
gint
-my_list_compare_two (g_const_pointer a, g_const_pointer b)
+my_list_compare_two (gconstpointer a, gconstpointer b)
{
gint one = *((const gint*)a);
gint two = *((const gint*)b);
}; */
gint
-my_compare (g_const_pointer a,
- g_const_pointer b)
+my_compare (gconstpointer a,
+ gconstpointer b)
{
const char *cha = a;
const char *chb = b;
/* --- functions --- */
static gint
-gtk_accel_entries_equal (g_const_pointer a,
- g_const_pointer b)
+gtk_accel_entries_equal (gconstpointer a,
+ gconstpointer b)
{
const GtkAccelEntry *e1;
const GtkAccelEntry *e2;
}
static guint
-gtk_accel_entries_hash (g_const_pointer a)
+gtk_accel_entries_hash (gconstpointer a)
{
const GtkAccelEntry *e;
guint h;
}
static guint
-binding_entry_hash (g_const_pointer key)
+binding_entry_hash (gconstpointer key)
{
register const GtkBindingEntry *e = key;
register guint h;
}
static gint
-binding_entries_compare (g_const_pointer a,
- g_const_pointer b)
+binding_entries_compare (gconstpointer a,
+ gconstpointer b)
{
register const GtkBindingEntry *ea = a;
register const GtkBindingEntry *eb = b;
}
static gint
-gtk_binding_pattern_compare (g_const_pointer a,
- g_const_pointer b)
+gtk_binding_pattern_compare (gconstpointer a,
+ gconstpointer b)
{
register const GtkPatternSpec *pa = a;
register const GtkPatternSpec *pb = b;
guint tag,
gint remove_link);
-static gint gtk_idle_compare (g_const_pointer a,
- g_const_pointer b);
+static gint gtk_idle_compare (gconstpointer a,
+ gconstpointer b);
-static gint gtk_timeout_compare (g_const_pointer a,
- g_const_pointer b);
+static gint gtk_timeout_compare (gconstpointer a,
+ gconstpointer b);
const guint gtk_major_version = GTK_MAJOR_VERSION;
const guint gtk_minor_version = GTK_MINOR_VERSION;
* sure that we insert at the _end_ of the idles of this priority
*/
static gint
-gtk_idle_compare (g_const_pointer a, g_const_pointer b)
+gtk_idle_compare (gconstpointer a, gconstpointer b)
{
return (((const GtkIdleFunction *)a)->priority <
((const GtkIdleFunction *)b)->priority)
* sure that we insert after timeouts of equal interval
*/
static gint
-gtk_timeout_compare (g_const_pointer a, g_const_pointer b)
+gtk_timeout_compare (gconstpointer a, gconstpointer b)
{
return (((const GtkTimeoutFunction *)a)->interval <
((const GtkTimeoutFunction *)b)->interval)
};
-static guint gtk_signal_hash (g_const_pointer h);
-static gint gtk_signal_compare (g_const_pointer h1,
- g_const_pointer h2);
+static guint gtk_signal_hash (gconstpointer h);
+static gint gtk_signal_compare (gconstpointer h1,
+ gconstpointer h2);
static GtkHandler* gtk_signal_handler_new (void);
static void gtk_signal_handler_ref (GtkHandler *handler);
static void gtk_signal_handler_unref (GtkHandler *handler,
}
static guint
-gtk_signal_hash (g_const_pointer h)
+gtk_signal_hash (gconstpointer h)
{
register const GtkSignalHash *hash = h;
}
static gint
-gtk_signal_compare (g_const_pointer h1,
- g_const_pointer h2)
+gtk_signal_compare (gconstpointer h1,
+ gconstpointer h2)
{
register const GtkSignalHash *hash1 = h1;
register const GtkSignalHash *hash2 = h2;
}
static guint
-font_hash (g_const_pointer font)
+font_hash (gconstpointer font)
{
return gdk_font_id ((const GdkFont*) font);
}